package com.shuyun.spring4.showcase.quickstart;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by goodb on 2017/1/3.
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DiConfig.class);
        UseFunction useFunction = context.getBean(UseFunction.class);
        System.out.println(useFunction.sayHello("di"));
        context.close();
    }
}
